<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title><s:text name="loginPage"></s:text></title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	

	<script type="text/javascript">
		function regist() {
			//获取页面第一个表单
			targetForm = document.forms[0];
			//改变action属性值
			targetForm.action = "regist";
		}
	</script>
  </head>
  
  <body>
 	<form action="login" method="post">
 		<s:text name="username"></s:text>
 		<input type="text" name="username" /><br/>
 		<br/>
 		<s:text name="password"></s:text>
 		<input type="password" name="password" />
 		<br/>
 		<input type="submit" value="登录"/>&nbsp;
 		<input type="submit" value="注册" onclick="regist();"/>
 	</form>
  </body>
</html>
